function HandleContainerTabOrders(gui, item, options) {
  this._gui = gui;
  this._item = item;
  this._options = options;
  
  this._callbackFunc = this._options.callbackFunc;
 
  this._createElements();
}

HandleContainerTabOrders.prototype._createElements = function() {
  var _self = this;
  
  for (var i = 0, il = this._item.length; i < il; i++) {
    var order = this._item[i];
    var guiTab = this._gui.tabs[i];
    
    guiTab.tab.appendChild(document.createTextNode(order.flag));
    if (order.disposalstatus == '1') {
      var tmp = document.createElement('span');
      tmp.style.fontSize = '13px';
      tmp.style.margin = '0 0 0 3px';
      tmp.appendChild(document.createTextNode('(Canceled)'));
      guiTab.tab.appendChild(tmp);
    } else if (order.finished=='1') {
      var tmp = document.createElement('span');
      tmp.style.fontSize = '13px';
      tmp.style.margin = '0 0 0 3px';
      tmp.appendChild(document.createTextNode('(Closed)'));
      guiTab.tab.appendChild(tmp);
    }
    guiTab.tab._trackId = order.trackId;
    guiTab.tab.onclick =  function () { _self._callbackFunc.call(_self, this._trackId); };
  }
};